﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WucCloud.Entity
{
    /// <summary>
    /// 角色权限关联表
    /// </summary>
    [Serializable]
    [SugarTable("Sys_RoleMenu", "角色菜单关联表")]
    [Tenant("0")]
    public class RoleMenuEntity :BaseEntity<string>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public RoleMenuEntity()
        {

        }

        /// <summary>
        /// 角色主键Id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnName = "RoleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "角色主键Id")]
        public string RoleId { get; set; }

        /// <summary>
        /// 菜单主键Id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnName = "MenuId", ColumnDataType = "nvarchar(50)", ColumnDescription = "菜单主键Id")]
        public string MenuId { get; set; }
    }
}
